package org.dromara.business.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.domain.UserFlowing;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 用户积分流水业务对象 user_flowing
 *
 * @author zlj
 * @date 2024-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserFlowing.class, reverseConvertGenerate = false)
public class UserFlowingBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long userFlowingId;

    /**
     * 积分
     */
    @NotNull(message = "积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 1签到  2提现  3返佣
     */
    @NotNull(message = "1签到  2提现  3返佣不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 返佣来源人id
     */
//    @NotNull(message = "返佣来源人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long subordinateId;

    /**
     * 流水类型 1余额  2积分
     */
    private String flowingType;
}
